Skip to content

feat(frontend): SEP-10 login for creator routes + reject UI and review states - #280

Merged
Kaylahray merged 2 commits into
Quid-proquo:mainfrom
phertyameen:feat/fe-creator-sep10
Aug 26, 2026
Merged

feat(frontend): SEP-10 login for creator routes + reject UI and review states#280
Kaylahray merged 2 commits into
Quid-proquo:mainfrom
phertyameen:feat/fe-creator-sep10

Conversation

@phertyameen

@phertyameen phertyameen commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Description

This PR addresses two issues for creator dashboard authentication and submission review.

1. SEP-10 login on creator routes (#265)

  • Creator layout now checks wallet connection and redirects to /connect-wallet if not authenticated
  • TopNav shows the connected wallet address (truncated) with a green indicator dot
  • Added Disconnect wallet dropdown in TopNav for logout
  • Replaced hardcoded mock values with wallet-aware UI
  • Utilizes the existing challenge/verify JWT flow in creator-api.ts
  • 401 responses trigger automatic re-challenge via the existing creatorApiFetch logic

2. Creator quest detail � reject UI + review states (#263)

  • Added Reject button for pending submissions with confirmation dialog
  • Confirmation includes an optional reason text field
  • Approve/Reject update visible status through local state machine (Pending ? Approved | Rejected)
  • Status badges properly reflect: Pending (yellow), Approved (green), Rejected (red)
  • Works with fixture data; no console.log-only reject gap

Changes

  • frontend/src/app/creator/layout.tsx � Wallet auth gating with loading state
  • frontend/src/components/creator/TopNav.tsx � Wallet address display and disconnect
  • frontend/src/features/creators/CreatorQuestDetail.tsx � Reject flow with confirm dialog
  • frontend/src/features/creators/SubmissionCard.tsx � Reject button and rejected badge

Closes #265
Closes #263

- Creator layout now checks wallet connection and redirects to /connect-wallet if not authenticated
- TopNav shows connected wallet address with disconnect dropdown
- Replaced mock hardcoded values (, stars count, avatar name) with wallet-aware UI
- Logout clears wallet session via WalletProvider

Closes Quid-proquo#265

feat(frontend): creator reject UI and review states

- Added reject flow with confirmation dialog
- Reject required manual confirmation with optional reason field
- Approve/reject update visible status badges (Pending/Approved/Rejected)
- Local state machine for Pending -> Approved | Rejected transitions
- Works with fixture data; no console.log-only reject gap
- SubmissionCard shows Approve/Reject buttons for pending submissions
- Rejected badge displayed after rejection

Closes Quid-proquo#263
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@phertyameen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

- Restructure layout effect to avoid synchronous setState (async setTimeout only)
- Remove unused Image import from TopNav
@Kaylahray
Kaylahray merged commit e989438 into Quid-proquo:main Aug 26, 2026
3 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Aug 26, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] SEP-10 login on creator routes [FE] Creator quest detail — reject UI + review states

2 participants